import request from '@/utils/request'
// 客情关怀礼品接口
// 客情关怀礼品列表
export function giftList(data) {
  return request({
    url: '/call-center/api/v1/careGift/page',
    method: 'get',
    data: data
  })
}

/**
 * 客情关怀礼品新增
 * @param {body} data 礼物参数
 */
export function giftAdd(data) {
  return request({
    url: '/call-center/api/v1/careGift/save',
    method: 'post',
    data: data
  })
}
// 客情关怀礼品修改
export function giftUpdate(data) {
  return request({
    url: '/call-center/api/v1/careGift/save',
    method: 'post',
    data
  })
}
// 客情关怀礼品详情
export function giftDetail(id) {
  return request({
    url: '/call-center/api/v1/careGift/' + id,
    method: 'get'
  })
}
// 客情关怀礼品删除
export function giftdelete(id) {
  return request({
    url: `/call-center/api/v1/careGift/${id}`,
    method: 'delete'
  })
}

// 客情关怀礼品批量
export function giftDeleteBatch(ids) {
  return request({
    url: '/call-center/api/v1/careGift/deleteBatch',
    method: 'delete',
    data: ids
  })
}

// 客情关怀礼品编辑
export function giftEdit(data) {
  return request({
    url: '/call-center/api/v1/careGift/update',
    method: 'put',
    data
  })
}
